package com.lib76.buildCode.dto;

import com.lib76.DBInfo.model.po.mysql.DatabaseTable;

public class DbTableData {

	private String tableScheam;  //数据库名
	private String tableName;	//表名
	
	public String getTableScheam() {
		return tableScheam;
	}
	public void setTableScheam(String tableScheam) {
		this.tableScheam = tableScheam;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
	public static DbTableData create(DatabaseTable table){
		DbTableData info = new DbTableData();
		info.setTableName(table.getTableName());
		info.setTableScheam(table.getTableSchema());
		return info;
	}
}
